<?php 
include_once "logger/logger.php";
include_once "model/moviles.php";
include_once "db/dbdao.php";

$dbh = new DBHandler("moviles");
$aux[0] = 0;
$aux[1] = 1;
$resp = $dbh->getMarcaElements("Samsung");
$resp = $resp->fetchAll(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE,'Movil');

foreach( $resp as $movil )
{
	$id = $movil->getID();
	$marca = $movil->getMarca();
	$modelo = $movil->getModelo();
	print "$id: $marca $modelo <br>";
	print "$marca <br>";
}
?>